﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using RockCompany.Master.DTO;
using System.Data;
using RockCompany.Common.Lib;
using RockCompany.Master.Model;

namespace RockCompany.Master.Validator
{
    public class WOValidator
    {
        public static bool IsEmpty(string strval)
        {
            return string.IsNullOrEmpty(strval.Trim());
        }

        public bool ExistsLotNo(string lotNo)
        {
            SW01FormModel modelSW01 = new SW01FormModel();
            return modelSW01.ExistsLotNo(lotNo.Trim()); // true if user name exists
        }
    }
}
